package com.livepan.server.service.model;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class ProblemModel {
    //题目id
    @NotNull(message = "题目id不能为空")
    private Integer problemId;


    //标题
    @NotBlank(message = "题目标题不能为空")
    private String title;

    //时间限制
    private Integer timeLimit;

    //内存限制
    private Integer memoryLimit;

    //问题描述
    private String description;

    //输入描述
    private String inputDesc;

    //输出描述
    private String outputDesc;

    //输入样例
    private String inputSample;

    //输出样例
    private String outputSample;

    //注意
    private String hint;

    //来源
    private String source;

    //是否特判
    private Boolean isSpj;

    //题目的ac人数
    private Integer accept;

    //题目的提交数量
    private Integer submit;

    //数据描述
    private String dataDesc;

    public String getDataDesc() {
        return dataDesc;
    }

    public void setDataDesc(String dataDesc) {
        this.dataDesc = dataDesc;
    }

    public Integer getProblemId() {
        return problemId;
    }

    public void setProblemId(Integer problemId) {
        this.problemId = problemId;
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getTimeLimit() {
        return timeLimit;
    }

    public void setTimeLimit(Integer timeLimit) {
        this.timeLimit = timeLimit;
    }

    public Integer getMemoryLimit() {
        return memoryLimit;
    }

    public void setMemoryLimit(Integer memoryLimit) {
        this.memoryLimit = memoryLimit;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getInputDesc() {
        return inputDesc;
    }

    public void setInputDesc(String inputDesc) {
        this.inputDesc = inputDesc;
    }

    public String getOutputDesc() {
        return outputDesc;
    }

    public void setOutputDesc(String outputDesc) {
        this.outputDesc = outputDesc;
    }

    public String getInputSample() {
        return inputSample;
    }

    public void setInputSample(String inputSample) {
        this.inputSample = inputSample;
    }

    public String getOutputSample() {
        return outputSample;
    }

    public void setOutputSample(String outputSample) {
        this.outputSample = outputSample;
    }

    public String getHint() {
        return hint;
    }

    public void setHint(String hint) {
        this.hint = hint;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Boolean getSpj() {
        return isSpj;
    }

    public void setSpj(Boolean spj) {
        isSpj = spj;
    }

    public Integer getAccept() {
        return accept;
    }

    public void setAccept(Integer accept) {
        this.accept = accept;
    }

    public Integer getSubmit() {
        return submit;
    }

    public void setSubmit(Integer submit) {
        this.submit = submit;
    }

    @Override
    public String toString() {
        return "ProblemModel{" +
                "problemId=" + problemId +
                ", title='" + title + '\'' +
                ", timeLimit=" + timeLimit +
                ", memoryLimit=" + memoryLimit +
                ", description='" + description + '\'' +
                ", inputDesc='" + inputDesc + '\'' +
                ", outputDesc='" + outputDesc + '\'' +
                ", inputSample='" + inputSample + '\'' +
                ", outputSample='" + outputSample + '\'' +
                ", hint='" + hint + '\'' +
                ", source='" + source + '\'' +
                ", isSpj=" + isSpj +
                ", accept=" + accept +
                ", submit=" + submit +
                '}';
    }
}
